package com.mediocre.constant;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;

/**
 * 专门存放常量的类
 */
public final class Constant {

    private Constant() {}

    // time type
    public final static String TIME_SECOND = "SECOND";
    public final static String TIME_MILLISECOND = "MILLISECOND";
    public final static String TIME_YMD = "yyyy-MM-dd";
    public final static String TIME_HMS = "HH:mm:ss";
    public final static String TIME_YMDHMS = "yyyy-MM-dd HH:mm:ss";
//    public final static String TIME_YMDTHMS = "YYYY-MM-ddTHH:mm:ss";
    public final static int CONNECT_TIMEOUT = 5000;
    public final static int CONNECTION_REQUEST_TIMEOUT = 5000;
    public final static int SOCKET_TIMEOUT = 5000;
    public final static boolean REDIRECTS_ENABLED = true;
    public final static String USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36";
    public final static String ACCEPT_ENCODING = "gzip, deflate, br";
    public final static String ACCEPT_ENCODING_UNZIPPED = "identity";
    public final static String CONNECTION = "keep-alive";
    // authority: i.cnblogs.com
    // method: GET
    // scheme: https
    public final static String ACCEPT = "application/json, text/plain, */*";
    public final static String ACCEPT_LANGUAGE = "zh-CN,zh;q=0.9";
    public final static String CONTENT_TYPE = "application/json";
    public final static String COOKIE = "_gid=GA1.2.1957132300.1629187909; __gads=ID=50b346d84b7c8aaa:T=1629187909:S=ALNI_MajnFN07MJ7qcC9JGM8TExb4bQ36w; .Cnblogs.AspNetCore.Cookies=CfDJ8NACB8VE9qlHm6Ujjqxvg5CYGPFPpaPSO2BfSx9_wXC2sVnwqxVdnx0kV86zNlqdVC_BwwhOwN3kWA4ERTlWoXaoPDNa6rMnPktMVvlK1CKHI4qI1wt1gs2kIxEEz8_hcuR8Ra2sPzhT-yLA0BNZx2wUVwh_GZfWwG55MXHGJhFoXrFFnr2rwj0_1PnsoPhYw5RvPPYsaXpWZqNUz3hHI0m89xE0iQYDo3epVwtVNQm13djpdKkAI7mPENnvUMWQt7kOisCt30dLSwc_AvKj3syHhmoxcfjDVP5hVh3SdCcilTy-QC9hVn2avTWWZB_VsV6bx60ZSndcJYTPhmPB7d3t8puB37P9zU4JOv2wgIIcRf8sogn9Y0T2kzMdxiSYM5kOJwYljArHSV7fRCuGssb2gmVR3IrAhRWDSa8aem8vS8EAjQdSuypom6yDeWrJrj3NGPcm13oWdya48Fx4OOizY7IH3_vyyUw6_fYujYAZyrZnqFrxtQ53tAFTge3_n6TR3jUBV83dxOy6UDKbPxI2TOXEv7FK7eAuVn0LLIY_SEA1_ZjPd9WS7RBivJfMUg; .CNBlogsCookie=BC74B86ABADA045300D8B2F82635906E8720BE0D66128C8DCFCAA288B270C377AB3B8C71BDA07611BBAB746F47FC1D9D89EC7559A08A277479B6053C01C90A9E7F4AA8CE27EBD1549B6C7F0405CBE94F8A74F85B43076B899B9714351ED7A9E6AC616B9F; .AspNetCore.Antiforgery.b8-pDmTq1XM=CfDJ8NACB8VE9qlHm6Ujjqxvg5CIaWkYqJP8MyUah5jlOx4W0k6k7XgxtLLDjBd5rjuZPChV6nT47SQh5uNDdjBm5-3KFNnCFI81LS3OJUGQhkIWdNPHGkgG7Mt4kAos5L0ibOERcGaccalurk-jDllMeWw; .AspNetCore.Session=CfDJ8NACB8VE9qlHm6Ujjqxvg5A6%2F7JgUTHw6o%2BHT6CHK5Ywnb6qiPWxweBgbFnSCzIWJdeuDE8DQQRG0lngPOpcBHyGsunR%2FCX%2FYJ9MGjfJEBQD4X7j7HiLlkKkK5i%2FMZ4UE24rAmbZ20GMqVItgAOJO4WwKzcoduShYHtuT7dnDmaI; _ga_3Q0DVSGN10=GS1.1.1629197072.2.1.1629197077.0; _ga=GA1.2.586262477.1629187909; XSRF-TOKEN=CfDJ8NACB8VE9qlHm6Ujjqxvg5BNUfUIvDxw__q4aC9VgWAnUkRwsBuoCjEqUQh3DXEMMO48pkc3pJUt-eN9xErhrGPWMBdYmfEfC6qMZXNoYZyQJa0gB3MUSKRsgbn5GlwDHoqklsb01HZKolJC9K8FrWUIc7w2HMDaP89YOoReR2hk8XInnlUp3-uFTVIXDfwL3w; _gat_gtag_UA_48445196_1=1";
    public final static String REFERER = "https://i.cnblogs.com/posts?page=1&search=pr&pageSize=10";
    public final static String SEC_FETCH_DEST = "empty";
    public final static String SEC_FETCH_MODE = "cors";
    public final static String SEC_FETCH_SITE = "same-origin";
    // x-xsrf-token for Delete
    public final static String X_XSRF_TOKEN_POST = "CfDJ8NACB8VE9qlHm6Ujjqxvg5DX0pric9HjTiHYOGiMIXaeYD3LmJDJe6LI8Q7fApdN5oC4UZ8SEJWsOpfSBXRxmFXe3ggpD2MKiiLg9lxSCcQXJgX_TPElq0teI-wnaVl_4D30IsbdLmW3mfhloCmvM5HCf7yNmOH9E2QHJvSrvFaMmAXcO92f2WE_Mcr5cYqLnQ";
    public final static String X_XSRF_TOKEN_DELETE = "CfDJ8NACB8VE9qlHm6Ujjqxvg5BNUfUIvDxw__q4aC9VgWAnUkRwsBuoCjEqUQh3DXEMMO48pkc3pJUt-eN9xErhrGPWMBdYmfEfC6qMZXNoYZyQJa0gB3MUSKRsgbn5GlwDHoqklsb01HZKolJC9K8FrWUIc7w2HMDaP89YOoReR2hk8XInnlUp3-uFTVIXDfwL3w";

    public final static ObjectMapper OBJECTMAPPER = new ObjectMapper();
    public static final int PAGE_SIZE = 100;
}
